package com.ethink.report.common.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ethink.framework.common.db.KeyValueDTO;
import com.ethink.report.api.info.TobSaleInfo;
import com.ethink.warehouse.api.request.MateInventoryDetailOrderQueryRequest;
import com.ethink.warehouse.api.response.MateInventoryDetailOrderQueryResponse;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author default
 * @date 2022-11-08
 */
@Mapper
public interface MateInventoryOrderQueryMapper {

    /**
     * 查询预售单销售出库数量和退货入库数量
     *
     * @return
     */
    List<TobSaleInfo> queryT42(@Param("returnOrderNoList") List<String> returnOrderNoList);


    List<KeyValueDTO> queryT42OrderNo(@Param("returnOrderNoList") List<String> returnOrderNoList);

    /**
     * 查询销售单销售出库数量和退货入库数量
     *
     * @return
     */
    List<TobSaleInfo> queryT72(@Param("returnOrderNoList") List<String> returnOrderNoList);


    List<KeyValueDTO> queryT72OrderNo(@Param("returnOrderNoList") List<String> returnOrderNoList);

    /**
     * 分页查询
     *
     * @param buildPage
     * @param request
     * @return
     */
    Page<MateInventoryDetailOrderQueryResponse> queryMateInventoryDetailOrder(Page buildPage, @Param("request") MateInventoryDetailOrderQueryRequest request);

}